set(BUILD_ASSETS_MPQ OFF)
set(USE_SDL1 ON)
set(NONET ON)
set(DEVILUTIONX_SYSTEM_LIBFMT OFF)
set(DEVILUTIONX_SYSTEM_LIBSODIUM OFF)
set(DEVILUTIONX_SYSTEM_BZIP2 OFF)

set(SDL1_VIDEO_MODE_BPP 32)
set(SDL1_VIDEO_MODE_FLAGS SDL_HWSURFACE)
set(SDL1_FORCE_SVID_VIDEO_MODE ON)

set(PREFILL_PLAYER_NAME ON)
set(DEFAULT_AUDIO_SAMPLE_RATE 44100)

# The mini's buttons are connected via GPIO and are mapped to keyboard inputs
set(HAS_KBCTRL 1)
set(DEVILUTIONX_GAMEPAD_TYPE Nintendo)
set(KBCTRL_BUTTON_DPAD_LEFT SDLK_LEFT)
set(KBCTRL_BUTTON_DPAD_RIGHT SDLK_RIGHT)
set(KBCTRL_BUTTON_DPAD_UP SDLK_UP)
set(KBCTRL_BUTTON_DPAD_DOWN SDLK_DOWN)
set(KBCTRL_BUTTON_B SDLK_SPACE)
set(KBCTRL_BUTTON_A SDLK_LCTRL)
set(KBCTRL_BUTTON_Y SDLK_LSHIFT)
set(KBCTRL_BUTTON_X SDLK_LALT)
set(KBCTRL_BUTTON_RIGHTSHOULDER SDLK_t)
set(KBCTRL_BUTTON_LEFTSHOULDER SDLK_e)
set(KBCTRL_BUTTON_TRIGGERRIGHT SDLK_BACKSPACE)
set(KBCTRL_BUTTON_TRIGGERLEFT SDLK_TAB)
set(KBCTRL_BUTTON_START SDLK_RETURN)
set(KBCTRL_BUTTON_BACK SDLK_RCTRL)
